Small example program on how to use VersaStreamFactory and VersaFSFactory:

-----------------------------------------------------------------------------

VersaStream vs = VersaStreamFactory.getVersaStream("myFileName", "r");

/*
	"myFileName" can be an uncompressed file, a file compressed in RAZip format, or a file compressed in GZIP format. VersaStreamFactory will automatically detect the format for you.
*/

System.out.println("Now let's mount the File System...");


myVFS = VersaFSFactory.getVersaFS(vs);

/*
	For now, the parameter "vs" above can be a versaStream in TAR or ZIP format. VersaFSFactory will automatically detect which format to use.
	
	In future versions of VersaFSFactory, you will be able to automatically mount streams formatted in ext2fs, xfs, hfs, hfs+, FFS (Amiga) ...

*/



-----------------------------------------------------------------------------


Enjoy,

Elifarley C. Coelho
elifarley@yahoo.com
http://www.geocities.com/elifarley/